
import { createCustomMethodDecorator } from "@midwayjs/core";

// 装饰器内部的唯一 id
export const LOGGING_KEY = "decorator:logging_key";
interface Log {
    title: string,

}

export function Log(fileName: string, log: Log): MethodDecorator {
    // 我们传递了一个可以修改展示格式的参数
    return createCustomMethodDecorator(LOGGING_KEY, { fileName, log });
}